package com.xzz.cloud.alibaba.service;

import com.xzz.cloud.entity.CommonResult;
import com.xzz.cloud.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author: hhz
 * @createDate: 2021-4-6
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {
    @PostMapping(value ="/storage/decrease")
    CommonResult decrease(Order order);
}
